{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}

<section class="content">

    <div class="row">
        <section class="connectedSortable" id="sortable1">

            <div class="box sortable-widget" id="user_info">
                <div class="box-header with-border">
                    <h3 class="box-title">用户信息</h3>
                </div>
                <div class="box-body">
                    <table class="table table-bordered table-striped">
                        <tbody>
                        <tr>
                            <th>账号</th>
                            <td>{$admin.user.account}</td>
                        </tr>

                        <tr>
                            <th>密钥</th>
                            <td>{$admin.user.password}</td>
                        </tr>

                        <tr>
                            <th>余额</th>
                            <td>{$admin.user.balance}</td>
                        </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </section>
    </div>

    <div class="row">
        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-aqua">
                    <i class="fa fa-user"></i>
                </span>
                <div class="info-box-content">
                    <span class="info-box-text">设备数量</span>
                    <span class="info-box-number">{$ota_count|default='0'}</span>
                </div>
            </div>
        </div>

        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-red">
                    <i class="fa fa-users"></i>
                </span>
                <div class="info-box-content">
                    <span class="info-box-text">分组数量</span>
                    <span class="info-box-number">{$ota_group_count|default='0'}</span>
                </div>
            </div>
        </div>

        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-green">
                    <i class="fa fa-list"></i>
                </span>
                <div class="info-box-content">
                    <span class="info-box-text">今日新增设备</span>
                    <span class="info-box-number">{$new_ota_count|default='0'}</span>
                </div>
            </div>
        </div>

        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-green">
                    <i class="fa fa-list"></i>
                </span>
                <div class="info-box-content">
                    <span class="info-box-text">升级包数量</span>
                    <span class="info-box-number">{$ota_imei_count|default='0'}</span>
                </div>
            </div>
        </div>

        <div class="clearfix visible-sm-block"></div>

        <div class="col-md-3 col-sm-6 col-xs-12">
            <div class="info-box">
                <span class="info-box-icon bg-yellow">
                    <i class="fa fa-keyboard-o"></i>
                </span>

                <div class="info-box-content">
                    <span class="info-box-text">接口请求次数</span>
                    <span class="info-box-number">{$ota_api_count['request_num']|default='0'}</span>
                </div>
            </div>
        </div>
    </div>

</section>

{/block}